import request from "@/api";

class WorkflowApi {
  /**
   * 获取流程页面
   * @returns
   */
  static async GetIndexUrl(): Promise<string> {
    return import.meta.env.VITE_APP_BASE_API + "/Workflow/Index";
  }

  static async QueryFlowChart(id: string) {
    return await request({
      url: `v1/workflow-instances/${id}`,
      method: "get",
    });
  }
}

export default WorkflowApi;
